/**
 * @file
 * @author dousha 
 * @date 2021/5/25.
 */

#ifndef PERISCOPE_UTIL_H
#define PERISCOPE_UTIL_H

#include <stdint.h>

extern uint16_t u16le(const uint8_t *);

extern uint16_t u16be(const uint8_t *);

extern int16_t s16le(const uint8_t *);

extern int16_t s16be(const uint8_t *);

extern uint16_t u3dot1(float);

extern int16_t s3dot1(float);

extern float map(int16_t, int16_t, int16_t);

extern float deg2rad(float);

extern float rad2deg(float);

#endif //PERISCOPE_UTIL_H
